import request from '@/utils/request'

// 查询存储各个数据交易所的相关信息列表
export function listExcvhanges(query) {
  return request({
    url: '/article/excvhanges/list',
    method: 'get',
    params: query
  })
}

// 查询存储各个数据交易所的相关信息详细
export function getExcvhanges(id) {
  return request({
    url: '/article/excvhanges/' + id,
    method: 'get'
  })
}

// 新增存储各个数据交易所的相关信息
export function addExcvhanges(data) {
  return request({
    url: '/article/excvhanges',
    method: 'post',
    data: data
  })
}

// 修改存储各个数据交易所的相关信息
export function updateExcvhanges(data) {
  return request({
    url: '/article/excvhanges',
    method: 'put',
    data: data
  })
}

// 删除存储各个数据交易所的相关信息
export function delExcvhanges(id) {
  return request({
    url: '/article/excvhanges/' + id,
    method: 'delete'
  })
}
